home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Caml Light 0.7 / examples / asl / token.mli < prev    next >
Encoding:
Text File  |  1995-06-01  |  359 b   |  14 lines  |  [TEXT/MPS ]

  1. (* $Id: token.mli,v 1.3 1994/11/10 09:57:26 xleroy Exp $ *)
  2.  
  3. #open "stream";;
  4.  
  5. type token_type =
  6.   IDENT of string | INT of int | OP of string
  7. | BSLASH | DOT | ELSE | EQUAL | FI | IF | LET | LPAREN | RPAREN | SEMICOL
  8. | THEN
  9. ;;
  10.  
  11. value next_token : char stream -> token_type;;
  12. value reset_lexer : char stream -> unit;;
  13. value token_name : token_type -> string;;
  14.